import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import svgIcon from '@/components/SvgIcon/index.vue'

import 'amfe-flexible/index.js'
import './assets/styles/index.scss'

import './permission'
import directive from './directive'

import ele from 'element-plus'
import 'element-plus/dist/index.css'
import EZUIKit from 'ezuikit-js';

import BaiduMap from 'vue-baidu-map-3x'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(EZUIKit)

directive(app);

app.component('svg-icon', svgIcon)

app.use(ele)

app.use(BaiduMap, {
    ak: 'Yk0EP1SLDPFNAYdIstrGGaWz0n4g8Ydc',
});

app.mount('#app')
